//
//  ContactsModel.swift
//  NyamanDana
//
//  Created by 李永彬 on 2025/10/31.
//

import SwiftUI

struct ContactsModel: Codable {
    var egrirecognizeic: Egrirecognizeic?
    var energyify: [String]?
}

struct Egrirecognizeic: Codable {
    var pachist: [Pachist]?
}

struct Pachist: Codable, Hashable {
    var piouswise: String?
    var phemia: String?
    var interestacle: String?
    var pressoutside: String?
    var noable: String?
    var himselfful: String?
    var appearoon: String?
    var productionence: String?
    var wouldator: String?
    var communityent: [Courseatic]?
    
    static func == (lhs: Pachist, rhs: Pachist) -> Bool {
        return lhs.piouswise == rhs.piouswise &&
        lhs.phemia == rhs.phemia &&
        lhs.interestacle == rhs.interestacle &&
        lhs.pressoutside == rhs.pressoutside &&
        lhs.noable == rhs.noable &&
        lhs.himselfful == rhs.himselfful &&
        lhs.appearoon == rhs.appearoon &&
        lhs.productionence == rhs.productionence &&
        lhs.wouldator == rhs.wouldator
    }

    func hash(into hasher: inout Hasher) {
        hasher.combine(piouswise)
        hasher.combine(phemia)
        hasher.combine(interestacle)
        hasher.combine(pressoutside)
        hasher.combine(noable)
        hasher.combine(himselfful)
        hasher.combine(appearoon)
        hasher.combine(productionence)
        hasher.combine(wouldator)
    }
}

